package com.yuju.account.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.yuju.account.dao.entity.UnitAccount;
import com.yuju.account.model.UnitAccountModel;
import com.yuju.common.PageModel;
import com.yuju.common.core.dao.IBaseDao;

/**
 * 类名：IUnitAccountDao  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2017年11月27日 上午10:24:54  <br />
 * @version : 1.1 <br />
 */
public interface IUnitAccountDao extends IBaseDao<UnitAccountModel, UnitAccount, String> {
	
	BigDecimal listUnitAccountSum(UnitAccountModel unitAccountModel);
	List<UnitAccountModel> listUnitAccountSSNoPage(UnitAccountModel unitAccountModel);
	
	Map<Object, Object> getYSK(UnitAccountModel unitAccountModel);
	int updateProtocolBalance(Map<String, Object> map);
	int updateAgentBalance(Map<String, Object> map);
	
	PageModel listUnitAccountSS(UnitAccountModel unitAccountModel, Integer currentPage, Integer rows);
	Integer countSSByMap(Map<Object, Object> map);
	
	PageModel pageListUnitAccount(UnitAccountModel unitAccountModel,Integer currentPage, Integer rows);
	List<UnitAccount> listUnitAccount(UnitAccountModel unitAccountModel);
	PageModel listUnitAccountAndSum(UnitAccountModel unitAccountModel,Integer currentPage, Integer rows);
	Integer countByMap(Map<Object, Object> map);
	Integer sumCountByMap(Map<Object, Object> map);
}
